Add return_all_runs option to post_process#88
Open
Wegatriespython wants to merge 3 commits intomainfrom
Open
Conversation
This returns all runs appending run_id to model column. Instead of fixed percentiles users can specifically map config parquet id to run_id.
- Unit test with synthetic ScmRun data exercising the full post_process pipeline in return_all_runs mode - NumPy-style docstring for post_process() and return_all_runs param docstring for run_and_post_process() - CHANGELOG entry under ### Added for #87
Wire return_all_runs through Click options for both clim_cli and workflow commands. Fix ruff format violations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a
return_all_runsparameter topost_process()that returns individual climate model runs (with run IDs encoded in the model name and climate model in the variable name) instead of percentile-aggregated results. This supports downstream analyses that need per-run timeseries rather than summary statistics.Also wires the option through the CLI (
--return-all-runs/--no-return-all-runs) for bothclim-cliandworkflowcommands.Closes #87
CHANGELOG.mdaddedNote on example: Running this feature end-to-end requires climate model configurations (e.g. FaIR parameter files). The unit test with synthetic data demonstrates usage. A notebook example can be added if requested.